<?php #use_javascript('/js/jquery.form.js')?>
<?php use_helper('jQuery'); ?>
<?php echo jq_form_remote_tag(array(
    'update'   => 'add_to_playlist',
    'url'      => '@add_to_playlist',
)) ?>

  <input value="Crea" type="submit">

</form>
  <h2 id="video_title">Aggiungi alla playlist</h2>
  <img src="http://i.ytimg.com/vi/BibR2SKY2AI/default.jpg" />
  <form action="<?php echo url_for('@add_to_playlist');?>" id="add_to_playlist_form" method="post">
    <fieldset>
      <label for="add_to_playlist_playlist">Seleziona playlist</label>
      <select id="add_to_playlist_playlist" name="add_to_playlist[playlist]">
        <option value="1">Rock</option>
      </select>
    </fieldset>
    <fieldset>
      <label for="add_to_playlist_new">Crea una nuova playlist</label>
      <input type="text" name="add_to_playlist[new]" id="add_to_playlist_new" />
    </fieldset>
    <fieldset>
      <input value="Crea" type="submit">
    </fieldset>
  </form>
<?php javascript_tag()?>
$(document).ready(function() { 
  var options = { 
    target: '#add_to_playlist',   // target element(s) to be updated with server response 
  }; 
  $('#add_to_playlist_form').submit(function() { 
    $(this).ajaxSubmit(options); 
    return false; 
  }); 
}); 

<?php end_javascript_tag()?>
aa
<?php include_partial("playlist/tags", array("form" => $form, "name"=> "tag", "attributes" => array()));?>
bb